From: Luca Miccio Date: Thu, 23 Mar 2017 01:31:37 +0000 (+0100) Subject: xen/Makefile: remove all temporary files for every architecture X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~2409 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=38d06eeb30b171e15ce254bf420f72e85206b3e6;p=xen.git xen/Makefile: remove all temporary files for every architecture Execute the clean target for both arm and x86 architecture. When trying to build Xen for a different architecture in the same tree, the command make clean will only remove temporary files for the host architecture. This will lead a compilation error when trying to build ARM64 and ARM32 Xen in the same tree. (See also: https://lists.xenproject.org/archives/html/xen-devel/2016-11/msg02176.html) Signed-off-by: Luca Miccio Acked-by: Wei Liu --- diff --git a/xen/Makefile b/xen/Makefile index dc6862e04d..fcd5c7e9d6 100644 --- a/xen/Makefile +++ b/xen/Makefile @@ -115,7 +115,8 @@ _clean: delete-unfresh-files $(MAKE) -f $(BASEDIR)/Rules.mk -C drivers clean $(MAKE) -f $(BASEDIR)/Rules.mk -C xsm clean $(MAKE) -f $(BASEDIR)/Rules.mk -C crypto clean - $(MAKE) -f $(BASEDIR)/Rules.mk -C arch/$(TARGET_ARCH) clean + $(MAKE) -f $(BASEDIR)/Rules.mk -C arch/arm clean + $(MAKE) -f $(BASEDIR)/Rules.mk -C arch/x86 clean $(MAKE) -f $(BASEDIR)/Rules.mk -C test clean $(MAKE) -f $(BASEDIR)/tools/kconfig/Makefile.kconfig ARCH=$(ARCH) SRCARCH=$(SRCARCH) clean find . \( -name "*.o" -o -name ".*.d" -o -name "*.gcno" \) -exec rm -f {} \;